package com.itheima.Jiuye02;

public class Demo {
    public static void main(String[] args) {

    }
}
abstract class Animal{
    public abstract void eat();
}
class dog extends Animal{
    public  void eat(){
        System.out.println("狗吃肉");
    }
}
class cat extends Animal{
    public  void eat(){
        System.out.println("猫吃鱼");
    }
}
class pig extends Animal{
    public  void eat(){
        System.out.println("猪吃糟");
    }
}
